package com.java.simple.study.jvm.memstruct.heap;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @author zhoujunlin
 * @date 2021/12/11
 * @desc jvisualvm工具
 **/
public class Demo2_4 {

    public static void main(String[] args) throws InterruptedException {
        List<Student> studentList = new ArrayList<>();
        for (int i = 0; i < 200; i++) {
            studentList.add(new Student());
        }
        TimeUnit.SECONDS.sleep(Integer.MAX_VALUE);
    }


}

class Student {

    private byte[] content = new byte[1024 * 1024];

}
